import {get,post} from './http'

export const reqregister =(d)=>post('/api/register',d)
//登录
export const reqlogin =(d)=>post('/api/login',d)
// 首页新人专享
export const reqNewhave =()=>get('/api/getnew')
// 万人团
export const reqwantuan =()=>get('/api/getgroupon')
//秒杀
export const reqtime =()=>get('/api/getseckill')
//首页商品信息
export const reqgoods=()=>get('/api/getindexgoods')
//商品详情
export const reqinfo =(d)=>get('/api/getgoodsinfo',d)
//商品分类
export const reqcate=()=>get('/api/getcate')
//商品分类商品信息
export const reqcategoods=(d)=>get('//api/getgoods',d)
//购物车添加
export const reqcartadd=(d)=>post('/api/cartadd',d)
//购物车列表
export const reqcartlist=(d)=>get('/api/cartlist',d)
//购物车修改
export const reqcartupdate=(d)=>post('/api/cartedit',d)
//我的轮播信息
export const reqbanner=()=>get('/api/getbanner')
// 购物车删除
export const reqcartdel=(d)=>post('/api/cartdelete',d)